# Contributor: Cássio Ávila <cassioavila@yandex.com>
# Maintainer: Cássio Ávila <cassioavila@yandex.com>
pkgname=cmusfm
pkgver=0.4.1
pkgrel=0
pkgdesc="Last.fm standalone scrobbler for the cmus music player"
url="https://github.com/Arkq/cmusfm"
arch="all"
license="GPL-3.0-or-later"
depends="cmus"
makedepends="autoconf automake curl-dev"
options="!check"
source="$pkgname-$pkgver.tar.gz::https://github.com/Arkq/cmusfm/archive/refs/tags/v$pkgver.tar.gz"

prepare() {
	default_prepare
	autoreconf -fi
}

build() {
	./configure --prefix /usr --build=$CBUILD --host=$CHOST
	make
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="
994599675822de5f809b3eedc423c37afe24e88df29fe4474d1834bf1e9573464d2bdbb084181db1d6c3bc0541891ccbb4514afa066c034e39035192ebc95211  cmusfm-0.4.1.tar.gz
"
